import {inject,onMounted,nextTick,ref} from 'vue'
import { Swipe, SwipeItem } from 'vant';
   export function swiperTs(){
        let $axios:any = inject('$axios')
        let useSwiperData = ref([])
        onMounted(()=>{
            $axios.get(`/swiper`).then((res: { data: never[]; })=>{
                useSwiperData.value=res.data
                    
                    })
                })
            return useSwiperData
    }

    export function tabs(){
        let $axios:any = inject('$axios')
        let useTabs = ref([])
        onMounted(()=>{
            $axios.get(`/tabs`).then((res: { data: never[]; })=>{
                console.log(res.data);
                useTabs.value=res.data
                    
                    })
                })
            return useTabs
    }
